{include file="common/_meta" /}

<title></title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理<span class="c-gray en">&gt;</span> 修改账户<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
	<div id="HuiTab-demo1" class="HuiTab">
	  <!-- <div class="tabBar clearfix"><span>修改登录密码</span><span>设置支付密码</span><span>修改支付密码</span></div> -->
	  <div class="tabCon">
	  	<form action="" class="form form-horizontal" id="form-pwd-edit">
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red"></span>登录账户:</label>
				<div class="formControls col-xs-8 col-sm-6">
					<input type="text" class="input-text" placeholder="" name="ad_tel" value="{$info.ad_tel}">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3">
					<span class="c-red"></span>账户昵称:</label>
				<div class="formControls col-xs-8 col-sm-6">
					<input type="text" class="input-text" placeholder="***" name="ad_name" value="{$info.ad_name}">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>登录密码:</label>
				<div class="formControls col-xs-8 col-sm-6">
					<input type="password" class="input-text" placeholder="***" name="ad_pwd">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>新密码:</label>
				<div class="formControls col-xs-8 col-sm-6">
					<input type="password" class="input-text" placeholder="***" name="new_pwd">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>确认新密码:</label>
				<div class="formControls col-xs-8 col-sm-6">
					<input type="password" class="input-text" placeholder="***" name="rnew_pwd">
				</div>
			</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input id="submit1" class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
	  </div>
	</div>

</div>
{include file="common/_footer" /}
<script>
	$("#HuiTab-demo1").Huitab({
			index:0
		});
	$("#HuiTab-demo2").Huitab({
		index:2
	});
	$("#HuiTab-demo3").Huitab({
		tabEvent:"mousemove",
		index:0
	});
	$("#submit1").click(function(){
		
        $.post("{:url('Setting/updateAccount')}",$("#form-pwd-edit").serialize()).success(function(data){
        	// console.log(data);
            layer.msg(data.msg,{offset: 't'});
            if(data.code){
            	setTimeout(function(){history.go(0);},1500);
            }	
        });
        return false;
    });

</script>
	
</body>
</html>